package cn.tedu.spring.example;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Testuser {
    public static void main(String[] args) {
        ApplicationContext context=new AnnotationConfigApplicationContext("cn.tedu.spring.example");
        User us=context.getBean(User.class);
        us.run();
        User user = new User();
        /*ApplicationContext context1=new ClassPathXmlApplicationContext("Bean.xml");
        User us1=context1.getBean(User.class);
        us1.run();*/



    }
}
